{% import "@WebsiteBundle/macros/pagination.html.twig" as macros %}
{% if list %}
	<div class="row row-deck row-cards">
		{% if list %}
			{% for item in list %}
				<div class="col-sm-12 col-lg-4">
					<div class="card">
						<div class="card-body">
							<div class="row align-items-center">
								<div class="col-3">
									<img src="{{ json_get(item['bigImg']) }}" alt="{{ item['name'] }}" class="rounded">
								</div>
								<div class="col">
									<h3 class="card-title mb-1">
										<a href="{{ path('app_tutorial_detail', {id:item['id']}) }}" class="text-reset">{{ item['name'] }}</a>
									</h3>
									<div class="text-muted">
										{{ item['updatedAtTime']|qtime}}更新
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			{% endfor %}
			<div class="col-sm-12 col-lg-12 pagination ">
				{{ macros.pagination(pagination) }}
			</div>
		{% else %}
	{{ include('@WebsiteBundle/empty.html.twig',{msg:'搜索结果为空!'}) }}
		{% endif %}
	</div>
{% endif %}
